﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ds.DataBase.Model;

namespace Domain.RealiZation.B
{
    /// <summary>
    /// 2.业务操作 消息内容，数据访问操作
    /// </summary>
    internal class KeShiZhiWuOperate : BaseOperate<KeShiZhiWu>, IKeShiZhiWu
    {
        /// <summary>
        /// 根据主键 获取对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public KeShiZhiWu GetModel(int ksid, int zwid)
        {
            return GetDbSet().SingleOrDefault(s => s.KeShi.ksid == ksid && s.zhiwu.zwid == zwid);
        }
    }
}
